package com.sunday.common.validation;

import com.sunday.common.core.gson.GsonUtils;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
public class SonDTO extends ParentDTO {

    @NotEmpty
    @Size(min = 1, max = 2)
    private List<LollipopDTO> lollipopDTOList;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
